package sns.action;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class TestAction extends ActionSupport {

	// pass in
	Integer testId;
	// return value
	Integer id;

	public Integer getTestId() {
		return testId;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setTestId(Integer testId) {
		this.testId = testId;
	}

	public Integer getId() {
		return id;
	}

	public String execute() {
		// TODO check validation
		System.out.println("Test id is " + testId);
		this.id = 5;
		return Action.SUCCESS;
	}

	// add get functions

}
